package com.memo4android.ui;

import com.memo4android.InFolderActivity;
import com.memo4android.ModifyFolderActivity;
import com.memo4android.model.Dossier;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnLongClickListener;

public class FolderClikedListener implements OnClickListener  {

	private Dossier dossier;
	private Context context;
	private Activity activity;
	
	public FolderClikedListener(Context context, Dossier dossier){
		this.dossier = dossier;
		this.context = context;
		this.activity = (Activity) context;
	}
	
	public void onClick(View v) {
		/*GridView gridview = (GridView) activity.findViewById(R.id.tableau_memo2);
		gridview.setAdapter(new FolderAdapter(context, dossier));*/
		Intent intent = new Intent(context, InFolderActivity.class);
		intent.putExtra("folderName", dossier.getTitre());
		activity.startActivity(intent);
	}
}
